import request from '@/utils/request'

// 根据状态查询挂号
export function getRegisterListByStatus(query) {
  return request({
    url: '/doctor/register/getListByStauts/' + query,
    method: 'get'
  })
}
// 根据h患者主键,分页查询历史病历
export function getHistoryByPatientId(query) {
  return request({
    url: '/doctor/history/listByPatientId' ,
    method: 'get',
    params:query
  })
}


//接诊  修改挂号状态为 就诊中
export function treatPatient(registerId) {
  return request({
    url:'/doctor/register/treat/' +registerId,
    method: 'put'
  })
}

//保存病例
export function addPatientHistory(data) {
  return request({
    url:"/doctor/history",
    method: "post",
    data:data
  })
}
